package com.dimanche.library_db.entity;

import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.TypeConverters;

import com.dimanche.library_db.base.BaseDbEntity;
import com.dimanche.library_db.converter.TimestampConverter;

import java.util.Date;

/**
 * author : Dimanche
 * date   : 2021/3/10 14:46
 * desc   :笔记
 * version: 1.0
 */
@Entity(tableName = "note")
public class NoteEntity extends BaseDbEntity {

    /**
     * 课程ID
     */
    @ColumnInfo(name = "courseId")
    public int courseId;

    /**
     * 用户ID
     */
    @ColumnInfo(name = "userId")
    public int userId;

    /**
     * 课程详细单字ID
     */
    @ColumnInfo(name = "detailedId")
    public int detailedId;

    /**
     * 笔记内容
     */
    @ColumnInfo(name = "content")
    public String content;

    /**
     * 笔记日期
     */
    @TypeConverters(TimestampConverter.class)
    @ColumnInfo(name = "date")
    public Date date;


}
